package com.ruoyi.project.mes.vehicleControl.service.impl;

import com.ruoyi.project.mes.vehicleControl.mapper.Gs11WeldingQueueIssueMapper;
import com.ruoyi.project.mes.vehicleControl.service.IGs11WeldingQueueIssueService;
import com.ruoyi.project.mes.vehicleControl.webService.gs11WeldingQueueIssue.VehicleInfo;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * 焊装队列下发 服务实现
 *
 * @author ruoyi
 */
@Service
@RequiredArgsConstructor
public class Gs11WeldingQueueIssueServiceImpl implements IGs11WeldingQueueIssueService {

    private final Gs11WeldingQueueIssueMapper gs11WeldingQueueIssueMapper;

    @Override
    public List<VehicleInfo> listWeldingQueueNotIssue() {
        return gs11WeldingQueueIssueMapper.listWeldingQueueNotIssue();
    }

    @Override
    public void updateWbsWeldingQueueIssueStatusBatch(List<VehicleInfo> list) {
        Timestamp wbsWeldingQueueIssueTime = new Timestamp(System.currentTimeMillis());
        gs11WeldingQueueIssueMapper.updateWbsWeldingQueueIssueStatusBatch(list,wbsWeldingQueueIssueTime);
    }
}
